Fix passing --extern and -L to doc tests
authorAlex Crichton <alex@alexcrichton.com>
Wed, 25 Mar 2015 19:46:21 +0000 (12:46 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 31 Mar 2015 17:06:46 +0000 (10:06 -0700)
commit5033dab9b3e38ce187f22e90a59f8e940d73bdc0
tree9dceb29b1a8a542e27a70196de82fd661a702101
parent19008f5803c6a97c8f2fc47009000cd70868f67b
Fix passing --extern and -L to doc tests

Previously --extern was passed for *all* upstream dependencies, causing
conflicts if some had duplicate names. Now cargo only passes --extern for
libraries that were built including immediate dependencies. Cargo also
additionally now properly passes `-L dependency=` instead of just a plain `-L`.

Closes #1449
src/cargo/ops/cargo_rustc/compilation.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/ops/cargo_rustc/mod.rs
src/cargo/ops/cargo_test.rs
tests/test_cargo_compile_git_deps.rs
tests/test_cargo_test.rs